//
//  ResignViewController.swift
//  GreenDeal
//
//  Created by Moennig Q on 2023/4/7.
//

import UIKit

class ResignViewController: BaseViewController {
    let customView = ResignView()
    var signatureType: SignatureType = .None
    override func viewDidLoad() {
        super.viewDidLoad()
        self.initUI()
        // Do any additional setup after loading the view.
    }
    
    func initUI(){
        self.view = self.customView
        self.customView.setTitleInfo(signatureType.rawValue + "  Signature")
        self.customView.setData(self.signatureType)
        self.customView.reSignBtn.addTarget(self, action: #selector(reSignBtnClick), for: UIControl.Event.touchUpInside)
    }
    @objc func reSignBtnClick(){
        InstallationSignatureService().setDataInfo(self).toSignature(signatureType)
    }
}
